<template>
    <div class="buttonPage" @click="handlerClick">
        <img class="buttonPage__ing" src="../../public/Favorite.svg" alt="">
        <p class="buttonPage__name">{{nameButton}}</p>
    </div>
</template>

<script>
import router from "@/router";
export default {
    name: 'ButtonPage',
    props: {
        nameButton: String,
        routePath: String
    },
    methods: {
        handlerClick() {
            router.push(this.routePath)
        }
    }
}
</script>

<style scoped>
.buttonPage {
    width: 120px;
    height: 120px;
    background-color: var(--tg-theme-button-color);
    opacity: 0.8;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.buttonPage:active {
    transform: scale(0.9);
    transition: transform 0.1s ease-in-out;
}

.buttonPage__ing {
    width: 30%;
    margin: 13px 13px;
    filter: invert(100%);
}

.buttonPage__name {
    color: var(--tg-theme-bg-color);
    font-size: 15px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    margin: 13px 13px;
}
</style>